package com.project.controller;

import com.project.entity.Entity;
import org.springframework.web.bind.annotation.*;

@RestController
public class ProjectController {


    @GetMapping(value = "/test")
    public String test(){
        return "你好！";
    }

    @ResponseBody
    @PostMapping(value = "/test1")
    public Entity test(@RequestBody Entity entity){

        return new Entity(1L, "test");
    }


}
